package com.tg.service.base.dependson.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

/**
 * DependsOn注解绑定@Bean使用，直接标注到类名无效
 * B6会优先加载
 */
@Configuration
public class DependsOnConfig {

    @Bean
    @DependsOn("b6")
    public A6 a6(){
        return new A6();
    }

    @Bean
    public B6 b6(){
        return new B6();
    }
}
